<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s"  uri="/struts-tags"%>

<title>生成的还款凭证列表</title><span id="navlink">贷后管理   >> 还款管理  >> 还款凭证管理</span>

<table class="table_box table_bottom_border" cellspacing="0" cellpadding="0">
	<tr>
		<th>合同编号</th>
		<th>借款人名称</th>
		<th>还款日期</th>
		<th>还款金额</th>
		<th style="width:200px">操作</th>
	</tr>
<s:iterator value="contractList" status="index" var="var">
	<tr>
		<td align="center">${contractId}</td>
		<td align="center">${customname}</td>
		<td align="center"><s:text name="f.date.ymdc"><s:param value="repaydate"/></s:text></td>
		<td align="right"><s:text name="f.money"><s:param value="grantmoney"/></s:text></td>
		<td align="center" id="${id}">
			<input type="button" class="print" value="打印" />
			<input type="button" class="printsure" value="确认" />
			<input type="button" class="printcancel" value="作废" />
		</td>
	</tr>
</s:iterator>
</table>
<div id="button_area"><div class="pagebar"></div></div>

<script type="text/javascript">
$(".print").click(function(){
	$thisid=$(this).parent("td").attr("id");
	window.open("creditPrint!printIn?type=do&id="+$thisid,'newwindow','height=450px, width=750px, scrollbars=no, resizable=no');
});
$(".printsure").click(function(){
	$thisid=$(this).parent("td").attr("id");
	OpenDialog(750,450,"确认","../creditmanage/creditPrint!printIn?type=sure&id="+$thisid);
});
$(".printcancel").click(function(){
	$thisid=$(this).parent("td").attr("id");
	MessageDialog("./creditIn!change?type=cancel&id="+$thisid,"作废？","");
});


</script>